package com.maimao.api.kill;

import com.maimao.core.model.resp.PageResult;
import com.maimao.core.model.resp.Result;
import com.maimao.model.common.StatusInput;
import com.maimao.model.kill.Activity;
import com.maimao.model.kill.KillApply;
import com.maimao.model.kill.input.ActivitySaveEntity;
import com.maimao.model.kill.input.ActivityScheduleIdInput;
import groovy.lang.Tuple2;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author MaoLin Wang
 * @date 2021/4/7 10:21 上午
 */
@Api(value = "秒杀商品申请")
public interface KillApplyApi {

    @ApiOperation("后台审核查询或商家自己查询申请记录")
    Result<?> query(KillApply killApply, Integer page, Integer size);

    @ApiOperation("申请")
    Result<?> apply(List<KillApply> activity);

    @ApiOperation("人工审核")
    Result<?> checkManul(KillApply killApply);

    @ApiOperation("商家撤回申请")
    Result cancel(Long id);

    @ApiOperation("根据活动id和排期id查询已报名的skuId列表")
    Result<?> querySkuIdsByAcSch(ActivityScheduleIdInput input);
}
